package com.yt.app.provider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.yt.app.core.interfaces.AppBannerService;
import com.yt.app.core.model.AppBanner;
import com.yt.app.provider.dao.AppBannerDao;
import com.yt.core.service.GenericServiceImpl;
import org.springframework.stereotype.Component;

import java.util.List;

public class AppBannerServiceImpl extends GenericServiceImpl<AppBanner, Long> implements AppBannerService {
	private AppBannerDao dao;

	public AppBannerServiceImpl() {
	}

	public AppBannerServiceImpl(AppBannerDao dao) {
		super(dao);
		this.dao = dao;
	}

	public List<AppBanner> getValidBannerList(Integer type){
		return this.dao.getValidBannerList(type);
	}
}
